package com.zdd.threelayoutproxy;

/**
 * @version 1.0
 * @Author: carl
 * @Description:
 * @Date: Create in 18:44 2020/10/7 0007
 */
public class OrderService implements IOrderService{

    private OrderDao orderDao;

    public OrderService() {
        orderDao = new OrderDao();
    }

    @Override
    public int createOrder(Order order) {
        System.out.println("OrderService调用orderDao创建订单");
        return orderDao.insert(order);
    }
}
